import request from '@/utils/request'

export function login(username, password) {
    return request({
        url: '/dgut/getOneHandlersMessage',
        method: 'get',
        params: {
            username,
            password
        },
    })
}

export function leave(codes) {
    return request({
        url: '/dgut/exit',
        method: 'post',
        params: {
            codes,
            actions:"退出系统"
        },
    })
}

export function update(codes,passwords1,passwords) {
    return request({
        url: '/dgut/updateHandlerPassword',
        method: 'put',
        params: {
            codes,
            passwords1,
            passwords
        },
    })
}